package day3.HomeWork;

/**
 * ClassName：Test11
 *
 * @Author：小鱼
 * @Create：2025-08-20 22:33
 */
public class Test11 {
    public static void main(String[] args) {
        // 创建两个账户
        Account a = new Account("A", 10000);
        Account b = new Account("B", 10000);
        //创建三个用户
        Thread t1 = new TransferAccount("用户1",a,b,500);
        Thread t2 = new TransferAccount("用户2",b,a,200);
        Thread t3 = new TransferAccount("用户3",a,b,300);
        //启动
        t1.start();
        t2.start();
        t3.start();
    }
}
